package team.seekers.catering.user.entity.dto.add;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

/**
 * 新增用户信息PA
 */
@Data
public class UserAddDTO {

    @NotBlank(message = "name不能为空")
    @Size(max = 10, message = "name长度不能超过10")
    private String name;

    @NotBlank(message = "手机号不能为空")
    @Size(max = 11, min = 11,message = "手机号格式错误")
    private String phoneNumber;

}
